home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutSDecTo.c < prev    next >
MacBinary  |  1994-08-31  |  1.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PutSDecTo.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 18:51:57 1994, modified Wed Aug 31 18:51:57 1994, creator Think C, type ASCII, 572 bytes "PutSDecTo.c" , at 0x2bc 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 75 74 53 44 65 | 63 54 6f 2e 63 00 00 00 |..PutSDe|cTo.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 02 3c 00 | 00 01 7e aa 8a ba 0d aa |......<.|..~.....|
|00000060| 8a ba 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2e b0 00 00 |........|........|
|00000080| 09 65 78 74 65 72 6e 09 | 73 68 6f 72 74 09 09 09 |.extern.|short...|
|00000090| 5f 5f 70 75 74 4d 61 72 | 6b 3b 0d 0d 76 6f 69 64 |__putMar|k;..void|
|000000a0| 20 50 75 74 43 68 61 72 | 28 63 68 61 72 20 63 29 | PutChar|(char c)|
|000000b0| 3b 0d 76 6f 69 64 20 50 | 75 74 54 65 78 74 28 63 |;.void P|utText(c|
|000000c0| 6f 6e 73 74 20 63 68 61 | 72 2a 20 73 2c 20 69 6e |onst cha|r* s, in|
|000000d0| 74 20 6c 65 6e 20 29 3b | 0d 76 6f 69 64 20 5f 5f |t len );|.void __|
|000000e0| 44 65 63 54 6f 54 65 78 | 74 20 28 75 6e 73 69 67 |DecToTex|t (unsig|
|000000f0| 6e 65 64 20 6c 6f 6e 67 | 20 64 65 63 2c 20 63 68 |ned long| dec, ch|
|00000100| 61 72 2a 20 73 74 72 20 | 29 3b 0d 76 6f 69 64 20 |ar* str |);.void |
|00000110| 50 75 74 53 70 61 63 65 | 73 54 6f 28 69 6e 74 20 |PutSpace|sTo(int |
|00000120| 65 6e 64 70 6f 73 29 3b | 0d 0d 76 6f 69 64 20 50 |endpos);|..void P|
|00000130| 75 74 53 44 65 63 54 6f | 28 73 69 67 6e 65 64 20 |utSDecTo|(signed |
|00000140| 6c 6f 6e 67 20 69 2c 20 | 69 6e 74 20 65 6e 64 70 |long i, |int endp|
|00000150| 6f 73 29 0d 7b 0d 09 09 | 42 6f 6f 6c 65 61 6e 09 |os).{...|Boolean.|
|00000160| 20 69 73 4e 65 67 3b 0d | 09 09 69 6e 74 09 09 20 | isNeg;.|..int.. |
|00000170| 73 74 61 72 74 2c 20 6e | 20 3d 20 30 3b 0d 09 09 |start, n| = 0;...|
|00000180| 63 68 61 72 2a 09 20 73 | 74 72 20 3d 20 22 30 30 |char*. s|tr = "00|
|00000190| 30 30 30 30 30 30 30 30 | 22 3b 0d 09 0d 09 69 66 |00000000|";....if|
|000001a0| 20 28 20 69 73 4e 65 67 | 20 3d 20 28 20 69 20 3c | ( isNeg| = ( i <|
|000001b0| 20 30 20 29 20 29 0d 09 | 09 69 20 3d 20 2d 69 3b | 0 ) )..|.i = -i;|
|000001c0| 0d 09 0d 09 5f 5f 44 65 | 63 54 6f 54 65 78 74 20 |....__De|cToText |
|000001d0| 28 69 2c 20 73 74 72 20 | 29 3b 0d 09 0d 09 77 68 |(i, str |);....wh|
|000001e0| 69 6c 65 20 28 20 73 74 | 72 5b 6e 5d 20 3d 3d 20 |ile ( st|r[n] == |
|000001f0| 27 30 27 20 26 26 20 6e | 3c 39 20 29 0d 09 09 6e |'0' && n|<9 )...n|
|00000200| 2b 2b 3b 0d 09 0d 09 73 | 74 61 72 74 20 3d 20 65 |++;....s|tart = e|
|00000210| 6e 64 70 6f 73 20 2d 20 | 28 31 30 2d 6e 29 3b 0d |ndpos - |(10-n);.|
|00000220| 09 0d 09 69 66 20 28 20 | 69 73 4e 65 67 20 29 20 |...if ( |isNeg ) |
|00000230| 73 74 61 72 74 2d 2d 3b | 0d 09 0d 09 69 66 20 28 |start--;|....if (|
|00000240| 20 73 74 61 72 74 20 3e | 3d 20 5f 5f 70 75 74 4d | start >|= __putM|
|00000250| 61 72 6b 20 29 0d 09 50 | 75 74 53 70 61 63 65 73 |ark )..P|utSpaces|
|00000260| 54 6f 28 20 73 74 61 72 | 74 2d 31 20 29 3b 0d 09 |To( star|t-1 );..|
|00000270| 0d 09 50 75 74 43 68 61 | 72 28 20 27 23 27 20 29 |..PutCha|r( '#' )|
|00000280| 3b 0d 09 69 66 20 28 20 | 69 73 4e 65 67 20 29 20 |;..if ( |isNeg ) |
|00000290| 50 75 74 43 68 61 72 28 | 20 27 2d 27 20 29 3b 0d |PutChar(| '-' );.|
|000002a0| 09 50 75 74 54 65 78 74 | 28 20 26 73 74 72 5b 6e |.PutText|( &str[n|
|000002b0| 5d 2c 20 31 30 2d 6e 20 | 29 3b 0d 7d 00 00 00 00 |], 10-n |);.}....|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000310| ff 00 02 0c 81 80 00 00 | 00 00 10 b1 00 97 0d 6f |........|.......o|
|00000320| 75 74 20 6f 66 20 6d 65 | 6d 6f 72 79 14 75 6e 74 |ut of me|mory.unt|
|00000330| 0b 50 75 74 53 44 65 63 | 54 6f 2e 63 02 00 02 00 |.PutSDec|To.c....|
|00000340| 54 45 58 54 4b 41 48 4c | 01 00 ff ff ff ff 00 00 |TEXTKAHL|........|
|00000350| 02 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 aa 20 c7 70 00 00 | 02 3c 00 00 01 7e 61 6e |... .p..|.<...~an|
|00000380| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6f 66 |t applic|ation of|
|00000390| 20 d4 25 73 d5 1b 69 6c | 6c 65 67 61 6c 20 61 70 | .%s..il|legal ap|
|000003a0| 70 6c 69 63 61 74 69 6f | 6e 20 6f 66 20 d4 25 73 |plicatio|n of .%s|
|000003b0| d5 14 75 6e 64 65 66 69 | 6e 65 64 20 6c 61 62 65 |..undefi|ned labe|
|000003c0| 6c 20 d4 25 73 d5 1d 6c | 61 62 65 6c 20 d4 25 73 |l .%s..l|abel .%s|
|000003d0| d5 20 69 73 20 61 6c 72 | 65 61 64 79 20 64 65 66 |. is alr|eady def|
|000003e0| 69 6e 65 64 16 64 65 63 | 6c 61 72 61 74 6f 72 20 |ined.dec|larator |
|000003f0| 74 6f 6f 20 63 6f 6d 70 | 6c 65 78 1a 69 6e 76 61 |too comp|lex.inva|
|00000400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00000430| 02 7d 00 52 00 3c 01 dc | 02 6c aa 8a 73 eb 00 00 |.}.R.<..|.l..s...|
|00000440| 01 d3 00 00 01 d3 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00000450| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 92 71 a4 |...L...L|...2..q.|
|00000460| 12 00 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000470| 00 0a 03 ed ff ff 00 00 | 00 00 00 92 6d 24 00 00 |........|....m$..|
+--------+-------------------------+-------------------------+--------+--------+